import { get, post, del, put } from "../http";
const api_name = '/admin/acl/user'

export const getPageList = (page, limit, searchObj) => get(`${api_name}/${page}/${limit}`, searchObj)
export const getById = (id) => get(`${api_name}/get/${id}`)
export const save = (user) => post(`${api_name}/save`, user)
export const updateById = (user) => put(`${api_name}/update`, user)
export const getAssign = (userId) => get(`${api_name}/toAssign/${userId}`)
export const saveAssign = (userId, roleId) => del(`${api_name}/doAssign`, userId, roleId)
export const removeById = (id) => del(`${api_name}/remove/${id}`)
export const removeRows = (idList) => del(`${api_name}/batchRemove`, idList)





